<!DOCTYPE html>
<!-- saved from url=(0050)http://web.hand999.com/daili_mobile/policyedit.php -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>商户管理系统</title>
<meta name="Keywords" content="">
<meta name="Description" content="">
<meta http-equiv="Cache-Control" content="no-cache">
<meta name="MobileOptimized" content="240">

<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">        
<!-- Mobile Devices Support @begin -->
  
  <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
  <meta content="no-cache" http-equiv="pragma">
  <meta content="0" http-equiv="expires">
  <meta content="telephone=no, address=no" name="format-detection">
  <meta name="apple-mobile-web-app-capable" content="yes"> <!-- apple devices fullscreen -->
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Mobile Devices Support @end -->
<link rel="stylesheet" type="text/css" href="__CSS__/public.css" media="all">
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
<script src="__JS__/jquery-2.1.0.min.js.下载"></script>
<style type="text/css">
	.put_box div.tl{padding-top:20px; height:30px; font-size:1.2em;}
	.put_box div.msg{}
	.put_box div.msg textarea{width:94%; height:300px; line-height:24px; font-size:1.3em; padding:10px; border-radius:5px; border:solid 1px #d7d7d7;}
</style>
</head>

<body class="body">
	<div class="page_top_box">
    <center>
        <div class="page_top">
            <a href="javascript:void(0)" onclick="history.go(-1)" class="back"><img src="__IMG__/ico_back.png"></a>
            <div class="pg_name" onclick="location.reload()">代理政策</div>
        </div>
    </center>
    </div>
    
    <div class="put_box">
	<form id="myform" name="form1" method="post" enctype="multipart/form-data" action="<?php echo U('Index/uploadOne') ?>">
    	<div class="tl">代理政策内容</div>
    	<div class="msg">
              <input type="file" name="file" value="" class="form-control">

        </div>
        <div class="btn">
        	<input type="submit" value="确定" class="btn">
        </div>
	</form>
    </div>
    
    <div class="pg_foot_box">
<center>
    <div class="pg_foot">
        <a href="indexx.html">商户管理平台</a>
    </div>
</center>
</div>    
    <div id="popbg" class="pop_box_bg"></div>
    <div id="ophint" class="op_hint">保存中，请稍候...</div>
    
    <div id="hintbox" class="hint_box">
        <span id="hintmsg"></span>
    </div>   
    <script type="text/javascript">
		function checkForm(){
			$("#popbg").css({"height":$(window).height() + "px", "display": "block"});
			$("#ophint").css("display", "block");
			
			$.post("prog.php?ac=user&do=policy",
				{
					cmd:"pdkpolicy",
					timestamp:"1482823769",
					sign:"34e24bcd45797aeb5f51b9a00bf2139f",
					conts:$("#content").val()
				},
				function(data, status){
					if(status == "success"){
						v = $.parseJSON(data);

						if(v.result == 0){							
							hintPop(v.errorMsg);return false;
						}else{
							hintPop(v.errorMsg);
							window.location.href="policyedit.php";
						}
					}
				}
			);
		}
		
		function modiPass(){
			
		}
		
		function hintPop(msg){
			$("#hintmsg").html(msg);
			$("#hintbox").css({"opacity": "1", "display": "block"});
			$("#hintbox").animate({"bottom":"80px"}, "last", function(){
				setTimeout(function(){
					$("#hintbox").animate({"opacity": "0"}, "last", function(){
						$("#hintbox").css({"bottom":"0px", "display": "none"});
					});
				}, 2000);
			});
		}
	</script>

</body></html>